CREATE TABLE [dbo].[tb_CarrerasAlumnos]
(
[idCarreraAlumno] [int] NOT NULL IDENTITY(1, 1),
[Alumno] [int] NOT NULL,
[Carrera] [int] NOT NULL,
[AnioIngreso] [int] NOT NULL,
[AlumnoRegular] [varchar] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[AnioEgreso] [int] NULL,
[Titulo] [int] NULL,
[RegistroEgreso] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tb_CarrerasAlumnos] ADD CONSTRAINT [PK_tb_CarrerasAlumnos] PRIMARY KEY NONCLUSTERED  ([idCarreraAlumno]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [idx_Alumno] ON [dbo].[tb_CarrerasAlumnos] ([Alumno]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tb_CarrerasAlumnos] WITH NOCHECK ADD CONSTRAINT [FK_tb_CarrerasAlumnos_tb_Divisiones] FOREIGN KEY ([Carrera]) REFERENCES [dbo].[tb_Divisiones] ([idDivision])
GO
ALTER TABLE [dbo].[tb_CarrerasAlumnos] WITH NOCHECK ADD CONSTRAINT [FK_tb_CarrerasAlumnos_tb_TitulosAlumnos] FOREIGN KEY ([Titulo]) REFERENCES [dbo].[tb_TitulosAlumnos] ([idTituloAlumno])
GO
ALTER TABLE [dbo].[tb_CarrerasAlumnos] NOCHECK CONSTRAINT [FK_tb_CarrerasAlumnos_tb_Divisiones]
GO
